import { deepCopy } from '../../assets/utils/util'

const state = {
  currentRoute: null,
  beforeRoute: null,
  isBar: true
}

const defaultValue = deepCopy(state)

const getters = {
}
const mutations = {
  SET_CURRENT_ROUTE (state, path) {
    state.currentRoute = path
  },
  SET_BEFORE_ROUTE (state, path) {
    state.beforeRoute = path
  }
}
const actions = {

}

export default {
  state,
  getters,
  mutations,
  actions
}